<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>ES6--Proxy</div>
</body>
<script>
    const obj = new Proxy({}, {
        get(target, key, receiver) {
            console.log('get==', key)
            return target[key]
        },
        set(target, key, value, receiver) {
            console.log('set==', key)
            target[key] = value
        }
    })
    obj.name = 'zhen'
    console.log('name', obj.name)
    
</script>
</html>